const { gql } = require('apollo-server-koa');

module.exports = gql`
  type Subscription {
    postAdded(
      name: String
    ): Book
  }

  type Book {
    title: String
    author: String
  }

  type pubData {
    id: String
  }

  type Query {
    gitSpages(gitUrl: String): [Book]
    pubPage(
      name: String
      url: String
      branch: String
      env: String
      pagename: String,
      puburl: String,
    ): pubData
    books: [Book]
  }
`;
